package com.example.wechatappbackend.controller.front;

import com.example.wechatappbackend.VO.DishVO;
import com.example.wechatappbackend.VO.MeuaVO;
import com.example.wechatappbackend.common.CommonResponse;
import com.example.wechatappbackend.common.JsonMsg;
import com.example.wechatappbackend.service.DishService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/Dish/")
public class DishController {
    @Autowired
    private DishService dishService;

    @GetMapping("")
    @ResponseBody
    public JsonMsg getAllDish() {
        return dishService.getAllDish();
    }

    @GetMapping("comment")
    @ResponseBody
    public JsonMsg getAllComment() {
        return dishService.getAllDish();
    }
}
